
<div class="row">
	<div class="alert-box secondary">
		<h5>Add Section Form</h5>
	</div>
	<?
	if(isset($system_message))echo $system_message;
	if(validation_errors() !== '') echo '<div class="error">'.validation_errors().'</div>';
	$section_name_val = set_value('section_name');
?>
	<form action="<?=site_url('rss-add-section');?>" method="POST" class="admin-form">
	
	<div class="large-4">
		<label>Section Name:</label>
		<input type="text" name="section_name" value="<?=$section_name_val;?>" required>
	</div>
	
	<div class="large-4">
		<label>For Grade Level:</label>
		<?
			if(!empty($levels)){
				echo form_dropdown('section_grade_level',$levels,'required');
			}else{
				echo 'No Levels Found <a href="'.site_url('admin/add_grade_level').'" class="data-link">Add Level</a><br><br>';
			}
		?>
	</div>

	
	<div class="large-4">
		<label>Section Adviser:</label>
		<?=form_dropdown('section_employee_name',$teachers,'required');?>
	</div>
	
	<div class="large-4">
		<label>Max Students For Section:</label>
		<input type="number" name="max_students" required>
	</div>
	
	<div class="large-4">

		<input type="submit" name="add_section" class="btn btn-primary btn-small" value="Add Section">
		<a href="<?=site_url('rss-section');?>" class="btn btn-small">Cancel</a>
	</div>
	</form>
</div>